package com.sayice.design.Visitor;

public class Client {
    public static void main(String[] args) {
        Fangfa fangfa = new Fangfa("method", 3);
        Shuxing shuxing = new Shuxing("attribute", 1);
        Lei lei = new Lei("class");
        lei.add(shuxing);
        lei.add(fangfa);
        lei.accept(new ListVisitor());
    }
}
